<?php
namespace Modules\Node\Library;

use Core\Mvc\Controller;

class Node{
    public static function isNode(){
        if(isset(Controller::$isNode) && Controller::$isNode === true){
            return true;
        }
        return false;
    }

    public static function currentNode(){
        if(self::isNode()){
            return Controller::$variables['data'];
        }
        return false;
    }
}